#include "SaverThread.h"
#include "ChangerThread.h"

int main()
{
    Data* data = new Data("data.txt", "(empty)");
    ChangerThread* c = new ChangerThread("ChangerThread", data);
    SaverThread* s = new SaverThread("SaverThread", data);

    c->start();
    s->start();

    c->wait();
    s->wait();

    delete c;
    delete s;
    delete data;

    CThreadManager::getInstance()->release();

    return 0;
}